#ifndef _IPC_H_
#define _IPC_H_

#include "base.h"

#define SYNC				TRUE
#define NON_SYNC			FALSE


#define SEND	0
#define RECV	1
#define NOTIFY	2

#define MSG_LEN	sizeof(struct message)
/*
  *  IPC vertor
  */
enum{
	IPC_INVALID = -1,

	/* file system */
	FS = 0x20000000,

	/* network */
	NET = 0x30000000,

	/* pipe */
	PIPE = 0x40000000,

	/* TTY */
	TTY = 0x50000000,
	IPC_PRINT,

	IPC_MAX
};


struct message{
	int src;
	int dst;

	int msg_nr;
};

#endif
